package com.wxzz.elearing.pay.service;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wxzz.elearing.pay.dto.UserTransactionDto;
import com.wxzz.elearing.pay.entity.UserTransaction;
import com.wxzz.elearning.common.vo.JgPageVo;
import com.wxzz.elearning.common.vo.ReturnVO;

import java.util.List;

/**
 * <p>
 * 余额明细 服务类
 * </p>
 *
 * @author
 * @since 2021-04-23
 */
public interface IUserTransactionService extends IService<UserTransaction> {

    /**
     * 余额变动
     * @param userTransactionDto
     * @return
     */
    ReturnVO<JgPageVo<List<UserTransaction>>> listUserTransaction(JSONObject jsonObject,UserTransactionDto userTransactionDto);

    /**
     * 获取用户名
     * @param userType
     * @param userId
     * @return
     */
    String getUserName(Integer userType,Long userId);

    /**
     * 平台给予用户赏金
     * @param userId
     * @param orderId
     * @return
     */
    ReturnVO giveAnswers(Long userId,Long orderId);
}
